Code Present Hoss is a powerful tool that can help you format your code for readability and for presentations (such as code reviews).
It's a well known fact that poor formatting, or even slightly different formatting, can seriously affect the readability of code. If you have a lot of code that uses different styles of formatting, especially if it's assembled from varied sources, you can see the benefit of a standard format. Code Present Hoss can help.
It can turn your code from:
Public
Sub MyCode()
'
This code does some wonderful things
Dim x$, Y#, M
x$ = "Hello World" : y# = 1.5
If
x$ = "Hello World" Then DoSomething y#
Select Case GetValue(Y#)
Case
1.5
Call
TestValue
Case 3.2
Call TestAnotherValue
End Select
End
Sub
To This:
Public
Sub MyCode()
' This code does some wonderful things
Dim x As String
Dim y As Double
Dim M
x = "Hello World"
y = 1.5
If x = "Hello World" Then
DoSomething Y
End If
Select Case GetValue(Y)
Case 1.5
Call TestValue
Case 3.2
Call TestAnotherValue
End Select
End
Sub
Now, of course, we don't all write code this poorly formatted. But how many times have you had to maintain code that others have written, with differing levels of formatting quality? Or have you ever downloaded a large code sample from the Internet and wanted to format it for your particular tastes and standards? It was a chore, if you had to do it by hand. Well, you no longer have to.
Not much can improve the quality of your code more than peer review. Code Present Hoss will print your code so nicely, it will stun your peers. Don't use the standard, and rudimentary, printing capability of Visual Basic for these meetings. Print your code with style. Using the above example:
Code Present Hoss provides a number of options to get your printing done right. And since it uses Microsoft's Rich Text Format (RTF) standard to print, you know it will be the highest quality and it will be compatible with your software and hardware.